<div class="groupUsers form">
<?php	//Cache::write('institution_id',2); 
	if(!Cache::read('group_id'))
	{
	    echo "<script>history.back(0);</script>";
	}
?>
<?php echo $this->Form->create('GroupUser'); ?>
	<fieldset>
		<legend><?php echo __('Agregar Grupo de Alumnos'); ?></legend>
	<?php
		//print_r($institutions);
		echo $this->Form->input('institution_id',array('label'=>'Institución','default' => Cache::read('group_institution_id'),'disabled'=>'true'));
		//echo "<label><b>Institución</b></label><br>".$institution['Institution']['nombre'];
		echo $this->Form->input('group_id',array('label'=>'Grupo','default' => Cache::read('group_id'),'disabled'=>'true'));
		echo $this->Form->input('user_id',array('separator' => '--separator--'));			
		echo $this->Form->input('lider');
	?>
	</fieldset>
<?php echo $this->Form->end(__('Aceptar')); ?>
</div>
<div class="actions">
	<h3><?php echo __('Acciones'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('Lista de grupos de alumnos'), array('action' => 'index')); ?></li>		
		<li><?php echo $this->Html->link(__('Listar usuarios'), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nuevo usuario'), array('controller' => 'users', 'action' => 'add')); ?> </li>
	</ul>
</div>
